<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <c:choose>
        <c:when test="#{userAgent.phone}">
            <ui:include src="mobileHome.xhtml">
                [phone]
            </ui:include>
        </c:when>
        <c:when test="#{userAgent.tablet}">
            <ui:include src="mobileHome.xhtml">
                [tablet]
            </ui:include>
        </c:when>
        <c:otherwise>
           <ui:include src="/desktopHome.xhtml">
                [desktop]
            </ui:include> 
        </c:otherwise>

    </c:choose>
</html>